﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Core</Project>
// <FileName>FileContent.cs</FileName>
// <CreateTime>2017-05-05 22:51</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-05-05 22:51" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System;
using System.Xml.Serialization;
using Newtonsoft.Json;

namespace Vecen.BangChuang.BangChuang.DomainServices.Common {

    /// <summary>
    /// 文件内容
    /// </summary>
    [Serializable]
    public class FileContent {

        /// <summary>
        /// 文件内容
        /// </summary>
        [JsonIgnore]
        [XmlIgnore]
        public byte[] FileBytes { get; set; }

        /// <summary>
        /// 文件大小
        /// </summary>
        public long ContentLength { get; set; }

        /// <summary>
        /// 高
        /// </summary>
        public int? Height { get; set; }

        /// <summary>
        /// 宽
        /// </summary>
        public int? Width { get; set; }

        /// <summary>
        /// 文件类型
        /// </summary>
        public string ContentType { get; set; }

        /// <summary>
        /// 远程地址
        /// </summary>
        public string RemoteUrl { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }
    }
}